*{
    padding: 0;
    margin: 0;
}
.w{
    width: 1200px;
    margin: auto;
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
.clearfix:before,.clearfix:after {
    content:"";
    display:table; 
  }
  .clearfix:after {
    clear:both;
  }
  .clearfix {
     *zoom:1;
  }   
 
body{
    background-color: #f3f5f7;
}
.header{
    height: 42px;
    margin: 30px auto;

}

.logo{
    float: left;
    /* 宽度是量的 高度与父亲一样 */
    width: 240px;  
    height: 100%;
    /* background-color: skyblue; */
}

.nav{
    float: left;
    /* width: 350px; 导航栏不用指定宽度*/
    height: 100%;
    margin-left: 20px; ;
    /* background-color:thistle; */
}
.nav ul>li{
    /* text-decoration: none;   这句应该写在a里*/
    float: left;
   
}
.nav ul li a{
    display: block;
    height: 42px;
    line-height: 42px;

    color: black;
    font-size: 18px;
    padding: 0 20px;
}
.nav ul li a:hover{
    border-bottom: 2px solid #00a4ff;
}

.search{
    
    float: left;
     width: 430px;
    height: 100%;
    /* background-color: yellow; */
    margin-left: 80px;
}
.search input{
    float: left;
    height: 40px;
    width: 340px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbb;
    font-size: 14px;
    padding-left: 15px;
}
.search button{
    float: left;
    height: 42px;
    width: 50px;
    border: 0;
    background: url(images/btn.png);
}

.user{
    float: right;
    margin-right: 35px;
    /* width: 170px; */
    height: 100%;
    line-height: 42px;

}

/* 以下是banner样式 */
.banner{
    height: 420px;
    background-color: #1c036c;
}
.banner .w{
    height: 420px;
    background: url(images/banner2.png) no-repeat top center;
}
.banner .w .subnav{
    /* 这个左浮动容易忘记 */
    float: left;
    height: 420px;
    width: 190px;
    background-color: rgba(1,1,1,0.3);
}
.banner .w .subnav li{
    height: 45px;
    line-height: 45px;
}
.banner .w .subnav a{
    
    font-size: 14px;
    color: white;
    margin: 0 20px;
}
.banner .w .subnav a:hover{
    color: #00a4ff;
}
.banner .w .subnav a span{
    float: right;
    margin-right: 18px;
}

.banner .w .course{
    float:right;
    width: 230px;
    height: 300px;
    background-color: #f3f5f7;
    /* 浮动的盒子不会有外边距合并问题（不会撑开？） */
    margin-top: 50px;
}
.banner .w .course h2{
    height: 40px;
    line-height: 40px;
    color: white;
    font-size: 18px;
    background-color: #9bceea;
    padding-left: 65px;
}
.course .bd{
    padding: 10px 20px;
} 
.course .bd ul li{
    padding: 13px 0px;
    border-bottom: 1px solid #c6c6c6;
}
.course .bd  ul li>h4{
    font-size: 16px;
    font-weight: 500;
    color: #474747;
}
.course .bd  ul li p{
    font-size: 12px;
    color:#a5a5a5 ;
}
.bd button{
    margin: 5px 0px;
    height: 40px;
    width: 190px;
    border: 1px solid #00a4ff;
}
.bd button a{
    font-size: 16px;
    font-weight: 700;
    display: block;
    color: #00a4ff;

}
/* 以下是goods模块样式 */
.goods{
    height: 60px;
    line-height: 60px;
    background-color: white;
    margin-top: 10px ;
    color: #00a4ff;
    box-shadow:0 2px 3px 3px rgba(1,1,1,0.1) ;
}
.goods h3{
    float: left;
    font-size: 16px;
    /* line-height: 60px; */
    padding: 0px 35px;
}

.goods .goods-item ul{
    margin-left: 30px;
}
.goods .goods-item ul li{

    float: left;
    /* line-height: 60px; */

}
.goods ul li a{

    padding:  0px 35px;
    border-left: 1px solid #c6c6c6 ;
}
.goods .mod{
    float: right;
    /* line-height: 60px; */
    margin-right: 20px;
    font-size: 14px;
}

/* 以下是box核心样式 */
.box{
    margin-top: 30px;
}
.box-hd{
    height: 60px;
    line-height: 60px;
}
.box .box-hd h3{
    float: left ;
    font-weight: 500;
}
.box .box-hd a{
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-right: 25px;
}
.box-bd ul{
    width: 1225px;
}
 .box-bd li{
     position: relative;
    float: left;
    width: 228px;
    height: 270px;
    margin-right: 15px;
    margin-bottom: 15px;
}
.box-bd li em{
    position: absolute;
    top: 4px;
    right: -4px;

}
.box-bd li>img{
    width: 100%;
}
.box-bd li h4{
    margin: 0 20px 0 25px;
    font-weight: 500;
}
.box-bd li .high{
    margin: 25px;
    font-size: 12px;
    color: #a5a5a5;
}
.box-bd li .high span{
    color: #ff7c2d;
}
 /* 以下是footer样式 */
.footer{
    height: 415px;
    background-color: #fff;
}
.footer .w{
    padding-top: 30px;
}
.footer .w .copyright{
    float: left;
}
.footer .w .copyright p{
    margin: 23px 0;
    font-size: 12px;
}
.footer .w .copyright a{
    /* color: #00a4ff;
    padding: 6px 20px;
    border: 1px solid #00a4ff; */
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    color: #00a4ff;
    font-size: 16px;
}
.footer .w .links{
    float: right;

}
.links dl{
    float: left;
    margin: 0 55px;
}
.links dl dd a{
    color: #474747;
    font-size: 12px;
}